package cn.edu.xust.communication.enums;

import java.util.LinkedList;
import java.util.List;

public enum AmmeterEnums {
    VA(1,"33 34 34 35"),
    VB(2,"33 35 34 35"),
    VC(3,"33 36 34 35"),
    IA(4,"33 34 35 35"),
    IB(5,"33 35 35 35"),
    IC(6,"33 36 35 35"),
    ActivePower(7,"33 33 36 35"),
    ReactivePower(8,"33 33 37 35"),
    PowerFactor(9,"33 33 39 35"),
    CurrentTotalActivePower(10,"33 33 33 33"),
    CurrentPositiveActivePower(11,"33 33 34 33"),
    CurrentNegtiveActivePower(12,"33 33 35 33");
    private Integer value;
    private String  name;
    AmmeterEnums(Integer value, String name) {
           this.value=value;
           this.name=name;
    }

    public List   getList(){
        List<String>   list  =new LinkedList<>();
        for (AmmeterEnums a:AmmeterEnums.values()) {
            list.add(a.getName());
        }
        return list;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
